package com.hiro.framework.tilegame.action.element;

import com.egghiro.framework.j2se.game.core.SMath;

public enum MoveTo {
    RIGHT(0), UP(1), LEFT(2), DOWN(3);
    private int value;
    

    private MoveTo(int value) {
        this.value = value;
    }

    public int getValue() {
        return this.value;
    }

    public static MoveTo nextMoveTo() {
        switch (SMath.nextInt(4)) {
        case 0:
            return RIGHT;
        case 1:
            return UP;
        case 2:
            return LEFT;
//        case 3:
//            return DOWN;
        default:
            return DOWN;
        }
    }
}
